package com.kaochong.xcx.exception;

import com.kaochong.xcx.enums.ResultEnum;

import lombok.Getter;

/**
 * 未登录异常类
 * @author han
 * @date 2018-05-01 16:01
 */
@Getter
public class AuthorizeException extends RuntimeException {
	
	private Integer code;
	
	public AuthorizeException(ResultEnum resultEnum) {
		super(resultEnum.getMessage());
		
		this.code = resultEnum.getCode();
	}
}
